<?php

namespace app\controllers;

use app\components\Controller;

class SiteController extends Controller
{
    public function actionIndex()
    {
//        return ['name' => 'hello world'];

        $result = app()->permission->enforce('3', '/customer/index');
//        $result = app()->permission->getImplicitPermissionsForNode('3', '/customer/index', 'data', 'field');
//        $result = app()->permission->getImplicitPermissions('3');
//        $result = app()->permission->isAdmin('3');
        return $result;
        var_dump($result);
        exit;
    }
}